package com.xy.blog.article.domain.dao.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description:
 * @date 2019/10/30 23:06
 */
@Data
//@Document(indexName = "blog", type = "java")
@Table(name = "t_article")
public class ArticleDO {

    @Id
    private Long id;
    /**
     * 文章标题
     */
    private String title;


    private String description;

    /**
     * 锚点
     */
    private String anchor;


    /**
     * 文章首页图片
     */
    @Column(name = "home_image")
    private String homeImage;

    /**
     * z
     * 1 转载
     * 2 翻译
     */
    @Column(name = "article_type")
    public Integer articleType;

    /**
     * 文章类型
     * markdown 0
     * 富文本 1
     * ...
     */
    private Integer type;

    private Integer orders;

    /**
     * 0 公开
     * 1 私有
     */
    @Column(name = "publish_type")
    public Integer publishType;
    /**
     * 教程0
     * 文章1
     */
    @Column(name = "is_course")
    public Integer course;

    @Column(name = "create_time")
    private LocalDateTime createTime;

    @Column(name = "update_time")
    private LocalDateTime updateTime;

}
